Skip to content

qa(checklist): split the device variant out of the auth-method matrix, and cover restart persistence and SCIM key revocation - #33421

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-v8xylo
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-v8xylo

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

domain:devx#4 · os-project-manager · session_01FEkQ5kHpQrXX5yTHRb5h4F

Part of #33353

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:next-sweep hand-overs: 13 checklist rows left partial or not driven in the v18.4.0 sweep #33353 的文字一半。拆分 identity-auth.auth-method-matrix(第 8 行),把设备授权拆成新条目 identity-auth.device-authorization-grant(blocked environment);给 api-backend.package-rest-lifecycle 加一条「重启后清单等于最后一次写入」的验收(第 196 行);新建 identity-auth.scim-deactivation-revokes-api-keys,断言 fix(plugin-auth): a directory deactivation revokes the user's API keys, and no one restores them #33075 的 SCIM 停用吊销 API key 后请求得 403 API_KEY_REVOKED(第 232 行);重测并改正 identity-auth.admin-lifecycle-operations 的 fixtures.requires[2]。只改两个 JSON 文件。
  • 为什么改:设备授权在任何 stock 启动下都开不了,拖住整个矩阵无法计分;拆开后可驱动的部分能计分。另两条是 v18.4.0 那轮记下的覆盖缺口。walled admin「没有组织」的说法在 main 上已过时。
  • 风险与回滚:只改清单文字,不动产品代码;改动的条目各升一版加一条历史,新条目从第 1 版起并写明来源。回滚即还原本 PR。
  • 先看:第 8 行的拆分。工单说「SSO 和设备」都受环境阻塞,但 main 上企业 SSO 用 OS_SSO_ENABLED 加 OS_TRUSTED_ORIGINS 就能在 stock 启动下驱动(QA QA run · touched:8e3d4a54 (27/52) · c4196099 · 2026-11-13 · 23 PASS / 1 PARTIAL / 3 FAIL / 0 BLOCKED / 25 NOT-RUN #33092),所以只拆出了设备授权,SSO 留在父条目里并写进了步骤。
  • 两分钟验证:pnpm check:platform-checklist,预期退出码 0。
  • 需要你做的:无,席位落地;卡片留给下一轮 checklist-test 的驱动一半。

What changes

docs/qa/platform-checklist/areas/identity-auth.json (two items changed, two new) and api-backend.json (one item changed), text only. Each changed item gets exactly one revision bump and one history row citing #33353 and the base it was read at (bd439f17); each new item starts at revision 1 with a history row naming where it came from. No other file. The drive rows (1–4, 6, 7, 9, 10, 106, 114) and api-backend.error-envelope-ledger are not touched.

row # item disposition evidence on main
8 identity-auth.auth-method-matrix split (parent, rev 12) packages/cli/src/commands/serve.ts L4658-L4672 (AuthPlugin env switches: OS_AUTH_ADMIN, OS_AUTH_TWO_FACTOR, OS_AUTH_PASSWORD_REJECT_BREACHED, OS_AUTH_PHONE_NUMBER_ENABLED only), L4549-L4552 OS_TRUSTED_ORIGINS; plugin-auth auth-manager-plugin-list.ts L176 OS_SSO_ENABLED, L211 and L932-L940 deviceAuthorization from config only
8 identity-auth.device-authorization-grant split (new item, rev 1, blocked environment) plugin-auth auth-manager-plugin-list.ts L932-L940 (deviceAuthorization plugin, verificationUri /auth/device); auth-manager.ts L5882 features.deviceAuthorization; auth-route-ledger.ts L387, L441-L444 /device rows; spec auth-endpoints.zod.ts L364-L367
196 api-backend.package-rest-lifecycle clause authored (rev 6) metadata-protocol protocol-package-install.ts L500-L520 updatePackage (persistPackageManifest L515, restore on failure); service-package index.ts L530-L541 publish stamps, L662-L672 list() picks MAX(updated_at) per id, L776-L852 boot hydration into registry.installPackage; package-table.ts L247 packageWriteStamp
232 identity-auth.scim-deactivation-revokes-api-keys item authored (new, rev 1) plugin-auth scim-deactivation-key-revocation.ts L124 revokeDirectoryDeactivatedApiKeys; auth-manager.ts L4929 reconcileScimUserLifecycle; core security/api-key.ts L324 API_KEY_REVOKED 403, L447-L450 scim_deactivated message; api-key-restore-guard.ts L85-L89 (no restorer); admin-user-endpoints.ts L1068-L1088 set-user-password
A note identity-auth.admin-lifecycle-operations re-pointed fixtures.requires[2] (rev 12) plugin-auth ensure-default-organization.ts L1-L75 (walled: the OS_PLATFORM_OWNER_EMAIL admin is bound owner of the Default Organization), L446 ensureDefaultOrganization; auth-manager-database-hooks.ts L199-L226 selectActiveOrg; scripts/qa/qa-fixture.mjs L351-L427 (walled-boot creates and sets an organization unless --no-organization)

Why

  • Row 8, the split. The README's Lifecycle rules allow Append, Change and Retire, and never delete. So the parent is Changed: the device variant, its step and its knownGap move out, and the title names where they went. The device variant is Appended as its own item, which starts at revision 1 and names the parent in its history row. The new item keeps the parent's acceptance meaning for device authorization: the advertisement matches the mounted routes, the RFC 8628 flow signs in, the console /auth/device page works, and an off-host /device/code call is refused. It carries blocked: environment, because no stock os dev or os serve switch turns on plugins.deviceAuthorization (serve.ts maps only the four switches above). Nothing is narrowed: every clause that applied to device authorization in the parent now applies in the child.

  • Row 8, SSO stays. The card read both SSO and device authorization as blocked by environment. Main says otherwise for SSO: OS_SSO_ENABLED turns the SSO plugin on and OS_TRUSTED_ORIGINS admits a mock IdP. QA run QA run · touched:8e3d4a54 (27/52) · c4196099 · 2026-11-13 · 23 PASS / 1 PARTIAL / 3 FAIL / 0 BLOCKED / 25 NOT-RUN #33092 drove it this way. So enterprise SSO stays in the parent as a drivable variant, and its fixture recipe is now in fixtures.requires[2] and steps[4].

  • Row 196. updatePackage persists the manifest before it answers (protocol-package-install.ts). Boot hydration reads, for each package id, the row with the latest updated_at (service-package index.ts). Write stamps are millisecond-monotonic (package-table.ts), so two writes cannot tie. The new step restarts the server on the same database. The new clause then requires that both the detail and the list serve the 2.0.0 overwrite from steps[5], and that the list has exactly one row for the package.

  • Row 232. This follows the checklist-author skill. The author re-read fix(plugin-auth): a directory deactivation revokes the user's API keys, and no one restores them #33075 and main, and the item sits beside identity-auth.scim-refused-audit-row, since the SCIM lifecycle reconcile is what revokes the key. It has three clauses, each settled by source:

    • After SCIM sets active: false, the key answers 403 API_KEY_REVOKED with the scim_deactivated message.
    • Setting the user active again does not re-arm the key.
    • No restorer exists: a revoked: false write is refused with 403 PERMISSION_DENIED.

    Getting a SCIM-provisioned user to hold a key over HTTP is a recipe that has not been driven live. It is recorded as a knownGap: if the recipe fails, a runner marks the item blocked: fixture and cites the unit pins as partial evidence.

  • Batch A note. Re-measured, the line was stale. A walled boot binds the platform-owner admin as owner of the Default Organization, and selectActiveOrg starts the session on it, so the admin does not start without an organization. The line now says this and keeps the instruction to make the intended org current. qa-fixture walled-boot does that by default.

Tests

No test was added or changed, because the diff is checklist text. There is nothing to ablate (os-dev.md: docs are not ablated). Authoring was scoped and done in sequence by one reader (checklist-author, without the sweep's subagents), because the order names the three rows.

Acceptance notes

  • The SSO departure from the card's wording is explained under Why. It moves no clause out of scoring that the card wanted scored.
  • The re-measure was done from source, not driven live. Each history row says so.
  • skip-changeset: docs/qa/** ships in no package.
  • Branch: after qa(checklist): re-point 36 stale access-security, api-backend and approvals items to what main does #33400 merged, origin/main was merged into claude/project-thread-v8xylo rather than force-pushed (AGENTS.md section 3 keeps force-push for claude/issue-* branches). The diff against origin/main was empty before the edit commit.

Verification

Run on head ee860d83 (branch claude/project-thread-v8xylo, merge base origin/main bd439f17). The gate list came from node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (16 commands), and each exit code was captured before any pipe:

16 derived, 16 run, all exit 0; --ran reconciliation exit 0
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0

dispatch-gates --ran: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED", exit 0. --tier: no mandate derived from the paths; 208 changed lines (+192 / -16), under the 3000-line human-merge threshold.

No package is touched, so no package build, test, typecheck or scoped pnpm lint is owed. Every other check family belongs to CI and is read from this PR's check-runs.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F

…s a non-reader gets as 404

approvals.request-page-reply-and-reader-visibility acceptance[1], approvals.quorum-m-of-n
steps[4] and approvals.decision-action-matrix acceptance[6] expected 403 FORBIDDEN from a
caller who cannot read the request. ApprovalService.refuseUnreadableRequest answers that
caller REQUEST_NOT_FOUND (404) before any slate or submitter check, so the request's
existence never leaks; 403 stays the answer to a reader who holds no slot. Each item gets
a revision bump and a history row.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
…rovals items to what main does

Each item's text is re-read from source on main and re-pointed where the
v18.4.0 sweep found it stale: the refusal codes and statuses a caller now
meets, the doors a console click actually posts, the app a request page
opens under, the runtime fixtures a run needs, and counts that grew (route
ledgers, retired definitions). Two negatives read the design now: the
status mirror's user-less cascade fails only if its data operation lands,
and a forged delegation may be refused at the object gate as well as by
the delegation guard. One revision bump and one history row per item.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
…, and cover restart persistence and SCIM key revocation

- identity-auth.auth-method-matrix: device authorization, which no stock
  boot can switch on, moves to a new item identity-auth.device-authorization-
  grant with its blocked(environment) marker, so the parent's per-variant
  clauses can score whole. The enterprise SSO half stays, with its boot
  recipe (OS_SSO_ENABLED and a trusted-origin IdP).
- api-backend.package-rest-lifecycle: a clause that the manifest served
  after a restart equals the last one written.
- identity-auth.scim-deactivation-revokes-api-keys: new item; a directory
  deactivation leaves each key answering 403 API_KEY_REVOKED, a
  re-activation re-arms none, and no one restores them.
- identity-auth.admin-lifecycle-operations: the walled admin already owns
  the Default Organization; the fixture line says which organization Create
  User joins and how to make the intended one current.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX

席位核对 · ACCEPT · head ee860d83 · 2026-11-14T20:24Z

  • 形态: draft → main, attribution first, Part of #33353. Paths from the PR's file list: docs/qa/platform-checklist/areas/api-backend.json (+17/-3), docs/qa/platform-checklist/areas/identity-auth.json (+175/-13). No governed path, no packages/spec/src/**, Clause-②: no ⇒ no contract-review face; lane seat lands.
  • Diff read: The text half of next-sweep hand-overs: 13 checklist rows left partial or not driven in the v18.4.0 sweep #33353 only. Row 8: identity-auth.auth-method-matrix split under the README Lifecycle rule (change the parent, append the child). Device authorization moves to a new identity-auth.device-authorization-grant (rev 1, blocked(environment)). SSO stays in the parent as a drivable variant, because main wires it through OS_SSO_ENABLED (plugin-auth/src/auth-manager-plugin-list.ts) plus OS_TRUSTED_ORIGINS (QA QA run · touched:8e3d4a54 (27/52) · c4196099 · 2026-11-13 · 23 PASS / 1 PARTIAL / 3 FAIL / 0 BLOCKED / 25 NOT-RUN #33092). Row 196: a restart clause on api-backend.package-rest-lifecycle (rev 6). Row 232: a new item identity-auth.scim-deactivation-revokes-api-keys; its 403 API_KEY_REVOKED is the refusal packages/core/src/security/api-key.ts L324 defines. Batch A's note on admin-lifecycle-operations fixtures.requires[2] was stale (the walled admin owns the Default Organization); it is re-pointed (rev 12). The INVALID_FILTER item is untouched.
  • 门禁 check-runs (head ee860d83): 51 runs · 28 success · 23 skipped · 0 not green; TypeScript Type Check success, Lint & Repo Gates success. K = 0 merges behind main (< 15).
  • Changeset: skip-changeset holds: the touched paths ship in no package.
  • 接受的偏差: SSO is kept in the parent rather than moved out with device, departing from the card's 'SSO and device' wording because SSO is now drivable on a stock boot; the new SCIM item's key-holding user recipe is not driven yet and is recorded as a knownGap.
  • 范围外去向: the drive half (rows 1–4, 6, 7, 9, 10, 106, 114) stays on next-sweep hand-overs: 13 checklist rows left partial or not driven in the v18.4.0 sweep #33353 for the next checklist-test sweep (Part of). Skills-docs: not owed (Metadata-protocol: none).
  • 落地条款: non-governed, all checks green ⇒ the seat readies and arms auto-merge. Ruling-ref: the maintainer's standing authorisation 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (this account's project).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 20:24
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 31b4b9f Nov 14, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-v8xylo branch November 14, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant